﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Animal
    {
        private int leg;

        public Animal() { }

        public Animal(int leg) 
        {
            this.leg = leg;
        }

        public virtual void Cry()
        {
            Console.WriteLine("我会叫："); 
        }
        public virtual void Eat()
        {
            Console.WriteLine("我会吃："); 
        }
        public void Drink()
        {
            Console.WriteLine("我会喝！"); 
        }
        public void Pull()
        {
            Console.WriteLine("我会拉！"); 
        }

        public int Leg
        {
            get { return this.leg; }
            set { this.leg = value; }
        }
    }
}
